package com.stu.controller.admin;

import com.stu.Dto.JobApplicationDTO;
import com.stu.Dto.JobWorkingDTO;
import com.stu.pojo.Login;
import com.stu.result.Result;
import com.stu.serive.JobInformationService;
import com.stu.serive.LoginService;
import com.stu.utils.JwtUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/admin")
public class JobWorkingController {

    @Autowired
    private JobInformationService jobInformationService;

    /**
     * 批量确认学生申请，将该学生加工作入职表
     * @return
     */
    @PostMapping("/jobWorking")
    private Result insertJobWorking(@RequestBody JobWorkingDTO dto){
        log.info("{}",dto);
        jobInformationService.insertJobWorking(dto);
        return Result.success();
    }

}
